#include "score.h"

/**
 * 06/03/12 - Steven Hartin - Original Creation
 */

CScore::CScore(int nAmount) : m_nScore(nAmount)
{
    /**
     * @param int nAmount The amount to intialise the score to
     */
}

CScore::CScore() : m_nScore(0)
{
    /**
     * Default constructor, initialise the score value to 0
     */
}

int CScore::getScore() const
{
    /**
     * @return int The current score value
     */
    return m_nScore;
}

void CScore::setScore(int nAmount)
{
    /**
     * Reassigns the value inside the score value.
     *
     * @param int nAmount The new value of the score
     */
    m_nScore = nAmount;
}

void CScore::updateScore(int nAmount)
{
    /**
     * Increments the current score by a given amount.
     *
     * @param int nAmount The amount to increment the score by
     */
    m_nScore += nAmount;
}

void CScore::decrementScore()
{
    /**
     * Decrements the score, reduces the value inside by 1.
     */
    --m_nScore;
}

void CScore::incrementScore()
{
    /**
     * Increments the score, increases the value inside by 1.
     */
    ++m_nScore;
}